package com.qyhl.school.school.reporter.detail;


import com.qyhl.webtv.commonlib.entity.school.SchoolReporterActBean;

public class SchoolReporterActDetailPresenter implements SchoolReporterActDetailContract.SchoolReporterActDetailPresenter {
    private SchoolReporterActDetailContract.SchoolReporterActDetailView mView;
    private SchoolReporterActDetailModel mModel;

    public SchoolReporterActDetailPresenter(SchoolReporterActDetailContract.SchoolReporterActDetailView mView) {
        this.mView = mView;
        this.mModel = new SchoolReporterActDetailModel(this);
    }

    @Override
    public void doSign(String username, int actId) {
        mModel.doSign(username, actId);
    }

    @Override
    public void getDetail(String username, int reportActId) {
        mModel.getDetail(username, reportActId);
    }

    @Override
    public void signResult(boolean isSuccess, String msg) {
        mView.signResult(isSuccess, msg);
    }

    @Override
    public void setDetail(SchoolReporterActBean bean) {
        mView.setDetail(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
